package com.sunshine_brid.ccras_server.controller;

import cn.hutool.json.JSONObject;
import com.sunshine_brid.ccras_server.service.EntityMenuMapperImpl;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author SunshineBrid
 */
@RestController
@RequestMapping("/EntityMenuController")
//@Api(value = "模拟流程", tags = "模拟流程")
public class EntityMenuController {
    @Autowired
    EntityMenuMapperImpl service;

    @GetMapping("/get")
    public JSONObject get(
//            @ApiParam(value = "项目ID")
            @RequestParam(value = "projectId") int projectId) {
        return service.getEnityMenuMapperByProjectId(projectId);
    }
}
